package net.wanho.shop.mapper;

import net.wanho.shop.po.Permission;
import net.wanho.shop.vo.PermVo;
import net.wanho.shop.vo.RoleSonVo;
import org.apache.ibatis.annotations.Mapper;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 权限表 Mapper 接口
 * </p>
 *
 * @author 猛虎王
 * @since 2024-12-24
 */

@Mapper
public interface PermissionMapper {

    List<PermVo> select(Permission permission);

    Permission selectById(Serializable psId);

    void insert(Permission permission);

    void update(Permission permission);

    void deleteById(Serializable psId);

    void deleteByIds(String[] split);

    List<Permission> selectBatch(String[] ids);

    List<RoleSonVo> selectByIds(String[] ids);

    List<Permission> selectChildrenByPid(Integer pid);
}
